/*
 * Copyright 2022 Holoinsight Project Authors. Licensed under Apache-2.0.
 */
package io.holoinsight.server.common.dao.entity.dto;

/**
 * 接口类型
 */
public enum InterfaceTypeEnum {
  /**
   * Http接口
   */
  HTTP("Http", "Http"),
  /**
   * Rpc接口
   */
  RPC("Rpc", "Rpc"),
  /**
   * 默认枚举
   */
  DEFAULT("Default", "Default");

  private String code;
  private String value;

  InterfaceTypeEnum(String code, String value) {
    this.code = code;
    this.value = value;
  }

  /**
   * Getter method for property <tt>code</tt>.
   *
   * @return property value of code
   */
  public String getCode() {
    return code;
  }

  /**
   * Setter method for property <tt>counterType</tt>.
   *
   * @param code value to be assigned to property code
   */
  public void setCode(String code) {
    this.code = code;
  }

  /**
   * Getter method for property <tt>value</tt>.
   *
   * @return property value of value
   */
  public String getValue() {
    return value;
  }

  /**
   * Setter method for property <tt>counterType</tt>.
   *
   * @param value value to be assigned to property value
   */
  public void setValue(String value) {
    this.value = value;
  }
}
